using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using FytSoa.Application.User;
using FytSoa.Domain.Cm;
using SqlSugar;

namespace FytSoa.Application.Cm;

/// <summary>
/// 社区评论
/// </summary>
public class CmCommentDto : AppEntity
{
    /// <summary>
    /// 社区
    /// </summary>
    public CmCommunityDto Community { get; set; }

    /// <summary>
    /// 用户
    /// </summary>
    public MemberDto User { get; set; }

    /// <summary>
    /// 审核状态
    /// </summary>
    public bool Audit { get; set; } = false;

    /// <summary>
    /// 评论内容
    /// </summary>
    public string Content { get; set; }

    /// <summary>
    /// 评星
    /// </summary>
    public int Star { get; set; } = 0;

    /// <summary>
    /// 回复内容
    /// </summary>
    public List<CmComment.CmCommentReply> ReplyBody { get; set; } = new();

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; } = DateTime.Now;


}